<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="Stylesheet" href="css/style.css" type="text/css" />
<?php require_once("connection/connect.php");?>
            <div class="right">
                <div class="title-3">
                    Quảng cáo
                </div>
                <div>
                    <!-- Hình quảng cáo -->
                    <?php
							$rs = mysql_query("select * from adv where location = 2 and(CURDATE() BETWEEN datecreate AND dateend)");
							while($d = mysql_fetch_array($rs)){
					?>
                        <a href="<?php echo $d["url"];?>">
                            <img alt="<?php echo $d["info"];?>" border="0" src="<?php echo $d["urlImage"];?>" onerror = "this.className = 'an'" width="100%"/>
                        </a>
                    <?php }?>
                </div>
            </div>